<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="lushu">
		<title>客户消费习惯报表</title>
		<script type="text/javascript" language="javascript" src="../script/common.js"></script>
		<script type="text/javascript" language="javascript" src="../script/common_stat.js"></script>
		<script type="text/javascript" language="javascript">
			var Page;
			function initPageElements(){
				Page.initRows = "tradeType;tradeStatus";
				Page.initMeasure = "accountType|sum;count";
				Page.tradeType = [100,200];
			}
		</script>
	</head>
	<body onload="PivotPage.init();" >
		<div class="nav"><div id="nav">&nbsp;</div></div>
		<div id="queryView" class="form">
			<div class="formTitle">客户消费习惯报表：查询条件</div>
			<form id="statForm" name="statForm">
				<table width="100%" cellspacing="0" cellpadding="4">
					<tr>
						<td colspan="2">
							<label>报表类型</label> 
							<span id="statClass"></span>
						</td>
					</tr>
				</table>
				<div id="stat_btn"></div>
			</form>
		</div>
		<!-- Flash 报表-->
		<div id="chartView" class="listBorder" style="display:none;">
			<div align="center">
				统计维度:
					<select name="d" onchange="PivotPage.refreshChart(this,'rows')">
						<option value="[ORG];">机构</option>
						<option value="tradeType">交易类型</option>
						<option value="tradeStatus">交易状态</option>
						<option value="accountType">帐户类型</option>
						<option value="cardUserType">客户类型</option>
						<option value="cardUserLevel">客户级别</option>
						<option value="cardType">卡类型</option>
					</select>
				统计量:
					<select name="m" onchange="PivotPage.refreshChart(this,'measure')">
						<option value="|sum">交易额</option>
						<option value="|volumn">油量</option>
						<option value="|count">交易数</option>
					</select>
			</div>
			<div id="flashContent"></div>
			<p>
				<button onclick="WebPrint.preview('printArea')">打印预览</button>
				<button onclick="WebPrint.print('printArea')">打印</button>
				<button type="button" onclick="switchPage('queryView')">返 回</button>
			</p>
		</div>
		<!--统计结果显示部分-->
		<div id="pivotView" style="display:none;">
			<div id="pivotable_head"></div>
			<div align="center" id="pivotTable"></div>
			<p>
				<button onclick="WebPrint.preview('printArea')">打印预览</button>
				<button onclick="WebPrint.print('printArea')">打印</button>
				<button type="button" onclick="switchPage('queryView')">返 回</button>
			</p>
		</div>
	</body>
</html>
